package com.gobuy.goods.feign;

import com.gobuy.common.pojo.Result;
import com.gobuy.goods.pojo.Spu;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Gaozexi on 2020/6/10 23:55
 * Step by Step  and Stand on,  You Are The Best Investment!
 */
@FeignClient("goods")
public interface SpuFeign {
    @GetMapping("/spu/findSpuById/{id}")
    Result<Spu> findSpuById(@PathVariable String id);
}
